Cache the canonical URL for a source
authorAlex Crichton <alex@alexcrichton.com>
Mon, 1 Jun 2015 18:40:49 +0000 (11:40 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Wed, 3 Jun 2015 01:05:47 +0000 (18:05 -0700)
commitf916188e4ed2763f35dbe7c6651dd7a8a8541185
tree272e39a9cc580c824caf8d195802e23906857fcc
parent6d7ce094e4d1d429fe0c79d40d195f408691d568
Cache the canonical URL for a source

This avoids reallocating and recalculating it on each call to
SourceIdInner::{eq, hash}, which are called quite often in the backend.
src/cargo/core/source.rs